package com.czmh.etc.onlinepubsys.services.mingchuang;

import com.czmh.etc.onlinepubsys.entity.mingchuang.CurrentContext;
import com.czmh.etc.onlinepubsys.entity.mingchuang.EtcOrder;
import com.czmh.etc.onlinepubsys.json.mingchuang.JSONResult;

public interface IEtcOrderService {

    /**
     * 根据订单号更新状态
     * @param orderNo
     * @param transactionId
     * @param payState
     */
    void updateByOrderNo(String orderNo, String transactionId, Integer payState);

    void deleteUnpayOrder();

    EtcOrder getByOrderNo(String orderNo);

    EtcOrder getByProductSn(String productSn);

    EtcOrder getByProductSn(String productSn, Integer payMode);

    void saveOrderAndContext(EtcOrder entity, CurrentContext ctx, String exchangeCode);

    JSONResult update(EtcOrder entity);

    void updateByObject(EtcOrder entity);
}
